﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApp._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
   <title></title>
</head>
<body>
   <form id="form1" runat="server">
<%--
   <div>
      <asp:Label ID="Label1" runat="server" Text="Count"></asp:Label>&nbsp;
      <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>&nbsp;
      <asp:Button ID="Button1" runat="server" Text="GetData" />&nbsp;
      <asp:RegularExpressionValidator ID="reValidator" runat="server" ControlToValidate="TextBox1"
         ErrorMessage="Invalid number!" SetFocusOnError="True" ValidationExpression="\d*"
         ForeColor="#CC0000"></asp:RegularExpressionValidator>
   </div>
   <div>
      <asp:GridView ID="gridView" runat="server" DataSourceID="ObjectDataSource" AutoGenerateColumns="True"
         EnableModelValidation="True">
      </asp:GridView>
   </div>
   <asp:ObjectDataSource ID="objectDataSource" runat="server" SelectMethod="GetPersonList"
      TypeName="WebApp.ServiceReference.ServiceClient">
      <SelectParameters>
         <asp:ControlParameter ControlID="TextBox1" DefaultValue="10" Name="count" PropertyName="Text"
            Type="Int32" />
      </SelectParameters>
   </asp:ObjectDataSource>
--%>

<%-- --%>
   <div>
      <asp:Label ID="Label1" runat="server" Text="Count"></asp:Label>&nbsp;
      <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>&nbsp;
      <asp:Button ID="Button1" runat="server" Text="GetData" />&nbsp;
      <asp:RegularExpressionValidator ID="reValidator" runat="server"></asp:RegularExpressionValidator>
   </div>
   <div>
      <asp:GridView ID="gridView" runat="server" AutoGenerateColumns="True" EnableModelValidation="True">
      </asp:GridView>
   </div>
<%-- --%>
   </form>
</body>
</html>
